<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			window.onload = function(){
				var ua = navigator.userAgent;
				if(/firefox/i.test(ua)){
					alert("你是firefox");
				}else if("ActiveObject" in window){
					alert("你是ie");
				}else if(/chrome/i.test(ua)){
					alert("你是chrome");
				}else{
					alert("我不认识你");
				}
			}
		</script>
	</head>
	<body>
	</body>
</html>
